package com.oj.service.impl;

import com.oj.entity.User;
import com.oj.mapper.UserMapper;
import com.oj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @Author: guan
 * @Date: 2023/5/30
 **/

@Service
public class UserServiceImpl  implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUser(String userName) {
      return userMapper.selectUser(userName);
    }

    @Override
    public void deleteUser(String userName) {
        userMapper.deleteUser(userName);
    }
}